import java.util.HashMap;
import java.util.Map;

/**
 * @author jianshan@byai.com
 * @date 2021/2/25 2:07 PM
 * describe:
 */
public class IDCardScript {




    static QleDTO replace(){
        QleDTO qleDTO = new QleDTO();
        //参数
        Map<String, String> hashMap = new HashMap<>();
        hashMap.put("参数变量名","33250219950625561*");
        qleDTO.setParams(hashMap);
        //脚本
        qleDTO.setScript("String number = 参数变量名;\n" +
                "if (number == null || number.trim().length() != 18){\n" +
                "    return null;\n" +
                "}\n" +
                "String result= number.replaceAll(\"\\\\*\", \"X\");\n" +
                "addDataCollect(\"返回变量名\",result)");
        return qleDTO;

    }
}
